package h.a.a.h;

import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;

/* compiled from: StandardDatabase */
public class g implements a {
    public final SQLiteDatabase a;

    public g(SQLiteDatabase sQLiteDatabase) {
        this.a = sQLiteDatabase;
    }

    public boolean a() {
        return this.a.isDbLockedByCurrentThread();
    }

    public void b() {
        this.a.endTransaction();
    }

    public void c() {
        this.a.beginTransaction();
    }

    public void d(String str) throws SQLException {
        this.a.execSQL(str);
    }

    public c e(String str) {
        return new h(this.a.compileStatement(str));
    }

    public Object f() {
        return this.a;
    }

    public void g() {
        this.a.setTransactionSuccessful();
    }

    public Cursor h(String str, String[] strArr) {
        return this.a.rawQuery(str, strArr);
    }

    public void i(String str, Object[] objArr) throws SQLException {
        this.a.execSQL(str, objArr);
    }
}
